
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'horizontalForm',
    'type' => 'horizontal',
    'enableAjaxValidation' => false,
        ));
?>
<fieldset>
    <?php echo $form->errorSummary($model); ?>


    <div class="portlet-decoration">A. </div>

    <br>

    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik"><b>Tahun</b></label>
        <div class="controls">
            <?php echo $form->textField($model, 'kab_pmk', array('class' => 'span2', 'maxlength' => 25)); ?>
        </div>
    </div>


    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik"><b>No SSPD</b></label>
        <div class="controls">
            <?php echo $form->textField($model, 'kab_pmk', array('class' => 'span2', 'maxlength' => 25)); ?>

            <?php
            $this->widget('bootstrap.widgets.TbButton', array(
                'id' => 'btn_pilih_NOP',
                'type' => 'primary',
                'label' => 'F1',
            ));
            ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik"><b>No Register</b></label>
        <div class="controls">
            <?php echo $form->textField($model, 'kab_pmk', array('class' => 'span2', 'readonly' => true, 'maxlength' => 25)); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik"><b>No Register Bank</b></label>
        <div class="controls">
            <?php echo $form->textField($model, 'kab_pmk', array('class' => 'span2', 'readonly' => true, 'maxlength' => 25)); ?>
        </div>
    </div>




    <div class="portlet-decoration">B.</div>
    <br>
    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik"><b>3. No Objek Pajak (NOP) PBB </b></label>
        <div class="controls">
            <input type = "text" name="no_op[]" id="no_op" class="span1" readonly>
            <input type = "text" name="no_op[]" class="span1" readonly>
            <input type = "text" name="no_op[]" class="span1" readonly>
            <input type = "text" name="no_op[]" class="span1" readonly>
            -
            <input type = "text" name="no_op[]" class="span1" readonly>
            <input type = "text" name="no_op[]" class="span1" readonly>
            <input type = "text" name="no_op[]" class="span1" readonly>
            -

            <input type = "text" name="no_op[]" class="span1" readonly>
            <input type = "text" name="no_op[]" class="span1" readonly>
            <input type = "text" name="no_op[]" class="span1" readonly>
            -
            <input type = "text" name="no_op[]" class="span1" readonly>
            <input type = "text" name="no_op[]" class="span1" readonly>
            <input type = "text" name="no_op[]" class="span1" readonly>
            -
            <input type = "text" name="no_op[]" class="span1" readonly>
            <input type = "text" name="no_op[]" class="span1" readonly>
            <input type = "text" name="no_op[]" class="span1" readonly>
            <input type = "text" name="no_op[]" class="span1" readonly>
            -
            <input type = "text" name="no_op[]" class="span1" readonly>

        </div>
    </div>



    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik">4. Nama Pemilik </label>
        <div class="controls">
            <?php echo $form->textField($model, 'kab_pmk', array('class' => 'span5', 'readonly' => true, 'maxlength' => 25)); ?>
        </div>
    </div>


    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik">5. Alamat Pemilik </label>
        <div class="controls">
            <?php echo $form->textField($model, 'alamat_pmk', array('class' => 'span5', 'readonly' => true, 'maxlength' => 50)); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik">6. Kelurahan/Desa </label>
        <div class="controls">
            <?php echo $form->textField($model, 'alamat_pmk', array('class' => 'span5', 'readonly' => true, 'maxlength' => 50)); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik"> RT </label>
        <div class="controls">
            <?php echo $form->textField($model, 'alamat_pmk', array('class' => 'span1', 'readonly' => true, 'maxlength' => 3)); ?>
        </div>
    </div>
    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik"> RW </label>
        <div class="controls">
            <?php echo $form->textField($model, 'alamat_pmk', array('class' => 'span1', 'readonly' => true, 'maxlength' => 3)); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik">7. Kecamatan </label>
        <div class="controls">
            <?php echo $form->textField($model, 'alamat_pmk', array('class' => 'span5', 'readonly' => true, 'maxlength' => 50)); ?>
        </div>
    </div>


    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik">8. Kabupaten </label>
        <div class="controls">
            <?php echo $form->textField($model, 'rt_pmk', array('class' => 'span2', 'readonly' => true, 'maxlength' => 3)); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik">9. Letak Objek Pajak </label>
        <div class="controls">
            <?php echo $form->textField($model, 'rt_pmk', array('class' => 'span2', 'readonly' => true, 'maxlength' => 3)); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik">10. Kecamatan </label>
        <div class="controls">
            <?php echo $form->textField($model, 'rt_pmk', array('class' => 'span2', 'readonly' => true, 'maxlength' => 3)); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik">11. Kelurahan/Desa </label>
        <div class="controls">
            <?php echo $form->textField($model, 'rt_pmk', array('class' => 'span2', 'readonly' => true, 'maxlength' => 3)); ?>
        </div>
    </div>

    <div class="portlet-decoration">C. </div>
    <br>

    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik">1. Nama Pembeli :</label>
        <div class="controls">
            <?php echo $form->textField($model, 'kab_pmk', array('class' => 'span5', 'readonly' => true, 'maxlength' => 25)); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik">2. Alamat Pembeli :</label>
        <div class="controls">
            <?php echo $form->textField($model, 'kab_pmk', array('class' => 'span5', 'readonly' => true, 'maxlength' => 25)); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik"><b>Perhitungan NOP </b> :</label>
        <div class="controls">
            <table class="table table-bordered table-striped">
                <thead>
                    <tr>
                        <th>Name</th>
                        <th>Type</th>
                        <th>Default</th>
                        <th>Description</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <th>asasa</th>
                        <th>bababa</th>
                        
                    </tr>
                    <tr>
                        <th>bababa</th>
                        <th>bababa</th>
                        
                    </tr>
                    <tr>
                        <th>cacaa</th>
                        <th>cacaa</th>
                        
                    </tr>
                    <tr>
                        <th>sda</th>
                        <th>sda</th>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>


    <div class="form-actions">
        <?php
        $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType' => 'submit',
            'type' => 'primary',
            'label' => $model->isNewRecord ? 'Simpan' : 'Save',
        ));
        ?>
    </div>

    <?php $this->endWidget(); ?>


    <?php
    $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
        'id' => 'dialog-objek',
        'theme' => 'sunny',
        'themeUrl' => Yii::app()->request->baseUrl . '/css/themes',
        'options' => array(
            'title' => 'Data Objek',
            'width' => 600,
            'min-height' => 400,
            'autoOpen' => false,
            'buttons' => array(
                'Ok' => 'js:function(){$(this).dialog("close")}',),
        ),
    ));
    ?>


    <?php
    $this->widget('bootstrap.widgets.TbGridView', array(
        'id' => 'ObjekPajak',
        'dataProvider' => $model->search(),
        'filter' => $model,
        'columns' => array(
            array(
                'name' => 'no_op',
                'value' => '$data->no_op',
            ),
            array(
                'name' => 'nama_pmk',
                'value' => '$data->nama_pmk'
            ),
            array(
                'value' => 'CHtml::submitButton("Pilih",array("no_op"=>$data->no_op,"nama_pmk"=>$data->nama_pmk,"onClick"=>"PilihNop($(this).attr(\'no_op\'))"))',
                'type' => 'raw',
            ),
        ),
    ));
    ?>


    <?php
    $this->endWidget('zii.widgets.jui.CJuiDialog');
    ?>

    <?php
    $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
        'id' => 'dialog-alert',
        'theme' => 'sunny',
        'themeUrl' => Yii::app()->request->baseUrl . '/css/themes',
        'options' => array(
            'title' => 'Data Objek',
            'width' => 600,
            'min-height' => 400,
            'autoOpen' => false,
            'buttons' => array(
                'Ok' => 'js:function(){$(this).dialog("close")}',),
        ),
    ));
    ?>

    <div id='txtAlert'></div>

    <?php
    $this->endWidget('zii.widgets.jui.CJuiDialog');
    ?>
</fieldset>